export default class Customer extends Phaser.GameObjects.Sprite {
    constructor(scene) {
        super(scene, 0, 0, 'customer_1');
        // ...初始化代码...
    }

    spawn(x, y) {
        this.setPosition(x, y)
            .setActive(true)
            .setVisible(true)
            .play('customer_walk');
    }
}